#ifndef __WINLOGO__
#define __WINLOGO__
#include <stdio.h>
#include "player.h"
#include <string>
#define X 57
#define Y 29
class WinLogo{
	public:
		WinLogo(int x,int y,int width=25,int height=15){
			if(x){
				this->x =x;
			}else{
				this->x=X+10;
			}
			if(y){
				this->y=y;
			}else{
				this->y=width;
			}
		}
		void draw_rectangle(int x,int y,int width,int height,int background){
			for(int i=0;i<height;i++){
				for(int j=0;j<width;j++){
					printf("\033[%d;%dH\033[%dm \033[0m",y+i,x+j,background);

				}
			}
		}
		void draw_text(int x,int y,int font,int background,const char *text){
			printf("\033[%d;%dH\033[%d;%dm %s,%s\033[0m",y,x,background,font,text);
		}
		void show(Player *player){
			draw_rectangle(60,7,50,15,42);
			draw_rectangle(62,8,50,15,47);
		
		}
	private:
		int x;
		int y;
		int width;
		int height;
};
#endif
